/*
 * ReciteAnalysisPlot.h
 *
 *  Created on: Jun 21, 2009
 *      Author: walter
 */

#ifndef RECITEANALYSISPLOT_H_
#define RECITEANALYSISPLOT_H_

#include <map>
#include <iostream>

#include <QWidget>
#include <QDate>
#include <QGridLayout>
#include <QDialog>

#include <qwt_plot.h>
#include <qwt_plot_grid.h>
#include <qwt_plot_marker.h>
#include <qwt_interval_data.h>

#include "histogram_item.h"
#include "ui_ReciteAnalysisPlot.h"

using namespace std;

class ReciteAnalysisPlot : public QDialog
{
	Q_OBJECT

public:
	ReciteAnalysisPlot(QDialog* parent = 0);
	virtual ~ReciteAnalysisPlot();

	void drawReciteDateGraph(map<QDate, int>& reviewDateCount, map<QDate, int>& reciteNewDateCount);
	void drawDifficultyLevelDistribution(map<int, int>& diffLevelDist);
	void drawReciteProgress(map<int, int>& reciteProgress);

private:
	Ui::ReciteAnalysisPlotClass ui;

	QwtPlot mReciteNewDatePlot;
	QwtPlot mReviewDatePlot;
	QwtPlot mDifficultyLevelDistributionPlot;
	QwtPlot mReciteProgressPlot;
};

#endif /* RECITEANALYSISPLOT_H_ */
